home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFUNCS
/
GRFXDRAG.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-01
|
714b
|
26 lines
/**************************************************************************
* GRFXDRAG.C - Extended graf_dragbox() function.
*************************************************************************/
#include "gemfintl.h"
short grfx_dragbox(startrect, boundrect, endrect)
register GRECT *startrect;
register GRECT *boundrect;
register GRECT *endrect;
{
if (boundrect == NULL) {
boundrect = &gl_rwdesk;
}
endrect->g_w = startrect->g_w;
endrect->g_h = startrect->g_h;
return graf_dragbox(startrect->g_w, startrect->g_h,
startrect->g_x, startrect->g_y,
boundrect->g_x, boundrect->g_y,
boundrect->g_w, boundrect->g_h,
&endrect->g_x, &endrect->g_y);
}